package com.yike.user.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 代理商区域配置表
 *
 * @author Sakura
 * @since 2024-09-13
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "代理商区域配置参数")
public class AgentAreaSettingParam implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotNull(message = "代理商id不能为空")
    @ApiModelProperty("代理商id")
    private Long agentId;

    @ApiModelProperty("代理商区域信息")
    @NotEmpty(message = "代理商区域信息不能为空")
    private List<AgentAreaParam> agentAreaParams;

}
